package com.shen.pojo.Car;

/**
 * Author:shen
 * CreateDate:2020/4/29.
 * Function:
 */

public class Engine {
    private double displacement;//排量
    private double weight;//重量
    private String brand;//品牌
    private int horsepower;//马力

    public Engine() {
    }

    public Engine(double displacement, double weight, String brand, int horsepower) {
        this.displacement = displacement;
        this.weight = weight;
        this.brand = brand;
        this.horsepower = horsepower;
    }
    public void first(){
        System.out.println("压缩空气");
    }
    public void second(){
        System.out.println("雾化汽油");
    }
    public void tree(){
        System.out.println("点火");
    }
    public void four(){
        System.out.println("排废烟");
    }
}
